package shuzi.model;

public class BrandPhone {

	private String id = "";
	/** 所属品牌 */
	private String brandId = "";
	/** 图片 */
	private String picture = "";
	/** 新号 */
	private String name = "";
	/** 制式 */
	private String network = "";
	/** 硬件配置 */
	private String hardwareInfo = "";
	/** 屏幕尺寸 */
	private String screenSize = "";
	/** 白色颜色价格 */
	private String wihtePrice = "0";
	/** 黑色颜色价格 */
	private String blackPrice = "0";
	/** 其它颜色价格 */
	private String otherPrice = "0";
	/** 系统 */
	private String os = "";
	private String approach = "";
	private String groupId = "";
	private String listingDate = "";
	private String memo = "";
	private String moerFeature = "";
	private String price = "";
	private boolean isCheck = false;
	/** 默认颜色为白色 */
	private int choiceColor = -1;
	/** 数量 */
	private int number = 1;


	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public int getChoiceColor() {
		return choiceColor;
	}

	public void setChoiceColor(int choiceColor) {
		this.choiceColor = choiceColor;
	}

	public boolean isCheck() {
		return isCheck;
	}

	public void setCheck(boolean isCheck) {
		this.isCheck = isCheck;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNetwork() {
		return network;
	}

	public void setNetwork(String network) {
		this.network = network;
	}

	public String getHardwareInfo() {
		return hardwareInfo;
	}

	public void setHardwareInfo(String hardwareInfo) {
		this.hardwareInfo = hardwareInfo;
	}

	public String getScreenSize() {
		return screenSize;
	}

	public void setScreenSize(String screenSize) {
		this.screenSize = screenSize;
	}

	public String getWihtePrice() {
		return wihtePrice;
	}

	public void setWihtePrice(String wihtePrice) {
		this.wihtePrice = wihtePrice;
	}

	public String getBlackPrice() {
		return blackPrice;
	}

	public void setBlackPrice(String blackPrice) {
		this.blackPrice = blackPrice;
	}

	public String getOtherPrice() {
		return otherPrice;
	}

	public void setOtherPrice(String otherPrice) {
		this.otherPrice = otherPrice;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public String getApproach() {
		return approach;
	}

	public void setApproach(String approach) {
		this.approach = approach;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getListingDate() {
		return listingDate;
	}

	public void setListingDate(String listingDate) {
		this.listingDate = listingDate;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getMoerFeature() {
		return moerFeature;
	}

	public void setMoerFeature(String moerFeature) {
		this.moerFeature = moerFeature;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	/**
	 * 深度复制对象
	 * @param phone
	 * @return
	 */
	public static BrandPhone copyItself(BrandPhone phone){
		BrandPhone newObj = new BrandPhone();
		newObj.setId(phone.getId());
		newObj.setBrandId(phone.getBrandId());
		newObj.setPicture(phone.getPicture());
		newObj.setName(phone.getName());
		newObj.setNetwork(phone.getNetwork());
		newObj.setHardwareInfo(phone.getHardwareInfo());
		newObj.setScreenSize(phone.getScreenSize());
		newObj.setWihtePrice(phone.getWihtePrice());
		newObj.setBlackPrice(phone.getBlackPrice());
		newObj.setOtherPrice(phone.getOtherPrice());
		newObj.setOs(phone.getOs());
		newObj.setApproach(phone.getApproach());
		newObj.setGroupId(phone.getGroupId());
		newObj.setListingDate(phone.getListingDate());
		newObj.setMemo(phone.getMemo());
		newObj.setPrice(phone.getPrice());
		newObj.setCheck(phone.isCheck);
		newObj.setChoiceColor(phone.getChoiceColor());
		newObj.setNumber(phone.getNumber());		
		return newObj;
	}

}
